﻿using NExplorer.Core.Properties;

namespace NExplorer.Core.Commands
{
	/// <summary>
	/// Creates a new folder _in the current directory_.
	/// </summary>
	internal class NewFolderToolBarCommand : CommandBase
	{
		public NewFolderToolBarCommand()
			: base("New Folder", Resources.NewFolder.ToBitmap())
		{}

		public override void Execute()
		{
			NewFolderContextMenuCommand.CreateDirectory(ServiceManager.Explorer.CurrentDirectory);
		}
	}
}